FROM python:3.9

WORKDIR /app

RUN rm -rf /etc/apt/sources.list.d/*

COPY sources.list /etc/apt/sources.list

RUN apt update && apt -y install vim && rm -rf /var/lib/apt/lists/*

COPY . /app

RUN pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/

EXPOSE 8501

CMD ["streamlit", "run", "web_ui.py", "--server.port=8501", "--server.address=0.0.0.0"]

